/**
 * 
 */
package com.jm.web.tags;

import com.jm.utils.StringHelper;
import com.jm.web.builder.HtmlBuilder;
import com.jm.web.tags.support.BaseTag;

/**
 * @author yanjie
 *
 * 2011/10/11 下午4:27:31
 */
public class HtmlTag extends BaseTag{
	private static final long serialVersionUID = -7422350297875330195L;
	
	@Override
	public String getBuilderName() {
		return HtmlBuilder.class.getName();
	}
	
	@Override
	protected void preEndTag() {
		 String strHtml = StringHelper.getValue(this.bodyContent.getString()).trim();
		 this.SetExtValue("html", strHtml);
	}
	
	@Override
	protected int onStartTag() {
		if(this.getPage().isExport() && !this.isEp()){
			return SKIP_BODY;
		}
		return EVAL_BODY_BUFFERED;
	}
	
}
